package com.example.admin.service;

import java.util.List;

import com.baomidou.mybatisplus.extension.service.IService;
import com.example.admin.entity.SysPermission;
import com.example.admin.entity.SysUser;

/**
 * <p>
 * 资源权限信息表 服务类
 * </p>
 *
 * @author wangkai
 * @since 2019-06-04
 */
public interface ISysPermissionService extends IService<SysPermission> {

	/**
	 * 刪除權限
	 * 
	 * @param permission
	 * @return
	 */
	boolean deleteParmission(SysPermission permission);

	/**
	 * 获取用户权限
	 * @param sysUser
	 * @return
	 */
	List<SysPermission> getUserList(SysUser sysUser);

}
